package com.java.day07.weapons;

/**
 * 匕首
 */
public class Dagger extends Weapons {
    //攻速
    private int atackSpeed;

    //移速
    private int movSpeed;


    //构造方法
    public Dagger() {
    }

    public Dagger(String name, int atack, int durability, int atackSpeed, int movSpeed) {
        super(name, atack, durability);
        this.atackSpeed = atackSpeed;
        this.movSpeed = movSpeed;
    }


    public int getAtackSpeed() {
        return atackSpeed;
    }

    public void setAtackSpeed(int atackSpeed) {
        this.atackSpeed = atackSpeed;
    }

    public int getMovSpeed() {
        return movSpeed;
    }

    public void setMovSpeed(int movSpeed) {
        this.movSpeed = movSpeed;
    }

    @Override
    public String toString() {
        return "Dagger{" +
                "atackSpeed=" + atackSpeed +
                ", movSpeed=" + movSpeed +
                ", name='" + getName() + '\'' +
                ", atack=" + getAtack() +
                ", durability=" + getDurability() +
                '}';
    }
}
